package gui;

import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: Eliseo
 * Date: 25.12.13
 * Time: 17:28
 */
public class SchlaegerRechts extends Schlaeger {


    public SchlaegerRechts(int width, int height) {
        super(width, height);

    }

    public void drawSchlaeger(Graphics g,int aktuelleBreite) {

        g2d = (Graphics2D) g;
        g2d.setColor(Color.WHITE);
        this.setX(aktuelleBreite - BREITE_DES_SCHLAEGERS - 5);
        g2d.fillRect(aktuelleBreite - BREITE_DES_SCHLAEGERS - 5, (int) y, BREITE_DES_SCHLAEGERS, HOEHE_DES_SCHLAEGERS);
    }


}
